home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.3 KB | 48 lines | [TEXT/GEOL] |
- Item 8727321 15-Jan-90 21:23
-
- From: D5295 Reseach SW Design, D Goldman,PRT
-
- To: MADA2 MacApp Dev Assoc, Curtis Faith
-
- cc: MACAPP.TECH$ MacApp Technical
-
- Sub: Re: if Focus then;
-
- Curtis --
-
- Focus fails not only when there is no window, but also when the view is not
- currently visible (eg, it's outside the visible region of its scroller).
-
- In my code, in which I've got a big dialog inside a scroller, there are places
- where I need to frame a section of a procedure like this:
-
- if Focus then
- BEGIN
- :
- :
- END;
-
- because the view may or may not be currently visible. However, there are lots
- of other places where I know that the view must be at least partially visible
- (things called from DoMouseCommand, for example, where we could only be invoked
- if the user was able to mouse-down inside us), in which cases it is sufficient
- to use the old:
-
- if Focus then;
- :
- :
-
- which has the advantage of looking almost like:
-
- Focus;
- :
- :
-
- which is all we usually need to intend to mean.
-
- Does that help?
-
- -- Dave Goldman
- Research Software Design
-
-